package top.jiangqiang.qyblog.core.domain.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author jiangqiang
 * @date 2022-07-31
 */
@Data
@Accessors(chain = true)
@Schema(name = "用户注册请求参数", description = "")
public class AdminUserRegisterDto implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    @Schema(description = "用户名", minLength = 5, maxLength = 32)
    @NotBlank(message = "用户名不能为空")
    private String username;
    @Schema(description = "密码")
    @NotBlank(message = "密码不能为空")
    private String password;
    @Schema(description = "确认密码")
    @NotBlank(message = "确认密码不能为空")
    private String confirmPassword;
}
